<template>
<div>
  <div class="msg-detail mb20" v-for="item in todolist">
    <dl class="top">
      <dt class="ft17">{{item.Title}}</dt>
      <dd class="ft14">{{item.CreateTime | timeshort}}</dd>
    </dl>
    <p class="txt ft14">{{item.Content}}</p>
    <div class="bottom ft14 txt-rit" @click="goDetail(item.BBillGuid)">查看详情</div>
  </div>
  <div class="noDate_page" v-if="todolist.length<=0">
    <div class="noDate_icon"><i class="iconfont icon-null"></i></div>
    未找到相关数据
  </div>
</div>
</template>
<script>
import footBox from "@/components/share/footerbox.vue";
export default {
  data() {
    return {
      todolist: []
    };
  },
  components: {
    footBox
  },
  created() {
    this.getData();
  },
  methods: {
    getData() {
      this.showLoad = true;
      var guid = this.$route.query.id;
      var self = this;
      var query = {
        Guid: guid
      };
      this.Ajax.post("SearchNotificationList", query).then(function(resp) {
        self.showLoad = false;
        if (resp.IsSuccess) {
          self.todolist = resp.Datas;
        }
      });
    },
    goDetail(guid) {
      this.$router.push({
        path: "/orderDetail",
        query: { id: guid }
      });
    }
  }
};
</script>


